/*
 * ElementsVisitor.cpp
 *
 *  Created on: 10-01-2011
 *      Author: Piotr
 */

#include "world/ElementsVisitor.hpp"
#include "pch.hpp"

using boost::shared_ptr;

void ElementsVisitor::visitEveryElement(World::ElementsVector& elements)
{
	BOOST_FOREACH(const shared_ptr<Element>& element, elements)
				{
					element->accept(*this);
				}
}

void ElementsVisitor::visitEveryElement(const World::ElementsVector& elements)
{
	BOOST_FOREACH(const shared_ptr<Element>& element, elements)
				{
					element->accept(*this);
				}
}

void ElementsVisitor::visitEveryElement(std::vector<Element*>& elements)
{
	BOOST_FOREACH(Element* element, elements)
				{
					element->accept(*this);
				}
}

void ElementsVisitor::visitEveryElement(const std::vector<Element*>& elements)
{
	BOOST_FOREACH(Element* element, elements)
				{
					element->accept(*this);
				}
}
